<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%>
<% alert_policy = grab_attributes(pwd)['alert_policy'] -%>
describe google_project_alert_policies(project: <%= gcp_project_id -%>) do
  it { should exist }
  its('policy_display_names') { should include <%= doc_generation ? "'#{alert_policy['display_name']}'" : "alert_policy['display_name']" -%>}
  its('combiners') { should include <%= doc_generation ? "'#{alert_policy['combiner']}'" : "alert_policy['combiner']" -%>}
end